Added logging capabilitied and made the print statements into log statements
Initial commit for the main program