removed warnings for comparison between signed and unsigned integer, also for string.find() compared to -1 (now string::npos)