Fix and improve javadoc, make a few changes to the AccountManager methods