added todo
cleaned up, added notes to check_account_active sub