Load handler.config

Resolved most of the issues stated in earlier pull request feedback 
Added Error Handling module 
eI have asked to do error handling here also. if the request is not valid then length of `lineSplit` will be different. Any input provided to function need to be validated unless and untill you are sure it is right