added config read/write support
use config files passed as parameters; added test.bat because I am too ignorant to make a proper shortcut