Setup starting code for Mallet and modifications to it