Characterisation of a thioesterase from alcaligenes facecalis and a dehydrogenase from penicillium funiculosum and application of the dehydrogenase in the preparation of pharmceutical and fine chemistry