Added a bit more flexibility. Can now use STDIN or filename as the input
made the second constant a bit more descriptive.