Added prototype for format function
Added return to malloc
Created a getLast function, but didn't implement it yet. Working on
fleshing out malloc.