Changed many methods and attributes to be public, as they should be, and to support JSON