linting and upgraded nan to 1.3.0