Adding save/load POI function;fixed minor bugs