Added an optional name to InputMap.
Moved map loading/saving to dedicated functions.