Added methods to conveniently retrieve CSS class and value