fixed code for feature map generation. added code for constraint generation.