now user can save generated regiter.
Merge pull request #179 from jasvir99/dirty

now user can save generated regiter.