fixed incorrect reading of maps file
fixed some typos