fixed build errors
added interface, documentation, functions