Added missing return/argument types. Removed undocumented API:s.