Finished calc method. Everything works now except for running from command line.