removed old printLog command. added convenience init method for commands.