Added file handling and option handling. Next is to finish the train and sample code.