Refactored package
Added GPL headers
Fixed project setup