added type finder code to pregnency section and refined other sections