added two different run files for debug and release versions
added logging to mail and files, fixed bug with non-unique-nicknames and added tests