Adding an MIT-type license
Removing unused code