added stdin support, updated function param checks, misc formatting
update dist
version number fix