optimized management of data types done in  #5 and #10

add tests and document
added 5 tests for DateTime data type #14
switched to named functions as suggested in #16
Merge pull request #16 from mcollina/feature/misc-datatypes

improvements to data types implementation