Sample config.xml file added
Exceptions added
Started handling exceptions in the code