tidy up lib ray

about to implement learning form gy521 library