fixed a few stuff, added index file and license