Add docs, reorganize application structure.