Fix account creation on join. Add some comments.
Add license header.
Add method for getting account balance.