Update main.xc

Removed calls to read_reg() from demo app
Merge pull request #31 from xross/patch-1

Update main.xc