add espruino side code
add some comments