Included feedback recieved during pull request. Added tests for output normalization class and modified its docstring, corrected bugs and integrated Sina's code for detector normalization.