Added code for v1.7 and branched 1.6

[Added] code for v1.7 in master branche
[Added] readLight method to read relative ambient light
[Added] branche for v1.6 code
[Fixed] incorrect return value of readSlider, changed from int to long