Fixed bug with file paths
Converted logging into events
Updated README