fixed some typos and included all function calls in the main block
fixed some typos and included all function calls in the main block

ucsb-cs8-f17/ucsb-cs8-f17.github.io,ucsb-cs8-f17/ucsb-cs8-f17.github.io,ucsb-cs8-f17/ucsb-cs8-f17.github.io,ucsb-cs8-f17/ucsb-cs8-f17.github.io,ucsb-cs8-f17/ucsb-cs8-f17.github.io