added test for writer
switch to Java 8 and NetBeans 8
added commenting