Code changed to that it can run in headless mode in Linux,
POM.xml has been updated so that maven take the source 5 or higher
and firefix class has been modified