Maven migration

Hey there! I ported this to Java and changed it to use maven!