add compile all script for compile programs at first time
some clean up