Change the coding style regarding constructor initialisers, and update the rest of the code accordingly
If you allocate an array, you should delete an array
Free the original buffer on failure of realloc
Add some more member variables to the initialiser lists
Check for assignment to self
Reduce the scope of a few variables
const correctness police
Fix make clean
Merge pull request #75 from LordAro/cppcheck

Some minor cppcheck-found fixes