Implementation of normalization

-Implemented normalization of whole image
-Changed small problems