updated implementation and documentation of class style