Updated shaper.cpp and fixed an issue with sudo in the updated makefile