change writestate
Removed Startbyte and Stopbyte from the class