bugfixes on pointer types
cleaner
previous doc