Convert class variables to getter/setter methods..

Also add some styling guidelines and renamed '_sender' to '_parent'