refactoring, add basic apidoc page, remove unused imports