Added basic API. Tutorial will come after some testing.