Added documentation and allow parameters when running from command-line