Now using templates instead of seperate functions for each data type.
Did not have latest version before I commited. Fixed.
Merge pull request #1 from P1raten/master

Templates rewrite.