Added controllers for docs, persons

Plus a few bug fixes