#31 fix malloc to compile, also add spaces instead of tabs