removed unnecessary constants/methods, added more documentation
made spacing consistent, added more documentation, and refactored get_server to become get_appcontroller_client, to avoid confusion with get_uaserver