Made more explicit exceptions
Renamed an object
Removed unnecessary import
Nested some methods, implemented validateSubjectToken and tests