added notes on malloc, free, memcpy