Fixed #25 and tidied flight plan generation up

also spelling error spotted!