Added inputs, fixed bugs, updated example page and readme