implemented and tested resource.registers property and fixed cs
Merge pull request #130 from evillemez/register

implemented and tested resource.registers property and fixed cs