Added accessor methods

Added accessor methods to the public class, and fixed a nasty
inheritance bug