Map is refreshed at a succesful registration. Close #241
Made some small bug fixes.