fixed bugs and added script for compile