added copyleft and fixed all the build stuff to build