make registers working.
Merge pull request #163 from jasvir99/dirty

make registers working.