Instances are now addable, some fixes to the login system, some comments and refactors.