Made code 1.6 compatible

Replaced system.lineSeperator with System.getProperty("line.separator")