lib: constructor no longer auto select prototype on function input
test: change to use .prototype
lib: update comments
readme: update docs