added option parser and file input feature(Issue#4)