Started docs, refactoring