Implemented preliminary configuration system (mostly works except for encryption algorithm which is not used yet) and fixed a few usability issues