Updated structure of code, everything separated.

Everything now is in its own section, easier to trace. Removed
unnecessary code. Changed where account info file is stored.