Changed error madal size
Added more register validation
Merge pull request #91 from tommyschnabel/Tommy

Tommy