If a duplicate account is being created or loaded then the functions return -1. The higher code can take it from there.
I'm mostly just testing the waters at this stage, and i've left some debug code in. There's no way to unload, delete, etc. the accounts, but that comes later.