jslint errors fixed
registery read sample added
write registery function
readme corrected