Initial working version

may not be updating values wiht Vera correctly