Added init for rc code

Somehow self.rc can be left unset, let's see why and where it happens
Merge pull request #8 from pkit/self_rc

Added init for rc code to prevent AttributeErrors