Fix import issue, add git ignore, fix permissions and shebangs.