initial project structure created

created pom.xml and updated gitignore
added the necessary classes to read and write a PGM image

also added log4j config file
added a few log messages and corrected type