fix install script and restructure tree.