Added Makefile and more patterns. Fixed sleeping issue with Thread delays