Style and spelling fixes.
Refactored code to select a path and for asking to create a path into functions and added them to the common module.
If "No" is being selected when asked to create the agent path the invalid path message box will now not be displayed.