Added license file, removed unnecessary functions