Updated license, bug fix