added warnings, took care of some data types, fixes #19