added rest actions, refactoring time, creating documentation.