Added saving events as CSV, added documentation to HBmain
Cleaned up a lot, debugging, readme file