Added exists() function for checking
Changed to static library