Added true/false checking to map inserts, fixed code that allowed duplicate keys