added file input functionality, updated README