Changed API to sync & added docs
Refactored files & objects structure