Fixed Makefile

Fixed makefile to include protocol
Fixed Protocol

Fixed all the errors to get the Protocol snippet to work.