refactored service names, added events and made the log-in form data more customisable
added documentation and refactored classes