Replaced 'fileExists' function with a macro, tests show it to working. Also added a a function to
check whether a user exists