Debugged and fixed modularized tessel code