Massive documentation fixes
Added API reference
Minor bug fixes