Fixed a number of small issues to make the CRS-planner program working, sort of.