Started writing doc comments
Fixed ready event bug
Misc additions