fixed barfing problems, renamed inputtype to type, updated readme, minor maintenance