corrected bug
added compile script