Minor improvements to 'Command Line Applications' docs

I noticed "command line" was referred to in a few different ways; "command-line" and "commandline". The latter was probably a typo. They have been changed to "command line".

Additionally, strip trailing whitespace. Hopefully that's acceptable.