Added Input methods

Added methods to input data from the command line and text file.