fixed some coffeelint errors; implemented new nio-styl stuff