Added some comments on how malloc can be avoided