Edited for typos etc. after verifying with Arduino program.

Edited for typos etc. after verifying with Arduino program.