Improved makefile
Fixed sleep mode
Applied license