Start working on documentation
Added state manager and exception