changes using the Sniffer.java tutorial by SourceForge, not compiling with maven