add file input element creator function, refactor element factory class, update readme