Implemented API v1. Added stubs for missing functions.