Fixed bug with retrieving current directory. Fixed bug with parameter order. Added some output formatting.