Added code to process file line-by-line, need to implement commands now