Replaced compile script with more intelligent one Also added gitignore, license, and modded readme