added .gitignore and log directory
added logging module
refactored require statements, added logging