remove unused includes
fix formatting
remove size checks

the new memory functions take care of this.
new function to create human-readable sizes
make string functions return strings
log human-readble memory usage