added ease of use for testing code and running from command line