Refactored, updated the test cases, and added lti authentication.