Language identification and other

Changes in language identification (i.e. language profiles), fixed null pointer exception, fixed problems in pom.xml, changed licenses