added support for dates
removed useless messages and added some basic type tests
improved code (more simple)