Added setup file with testing
Improved logging functionality