CSV lookups and Logging

I have updated the code to include CSV lookups, for which I ended up
making dictionaries for both the sheets. Have also included Logging,
made tiny optimizations and have also tested the code for the new
functionalities.