support for multiple class tags

fixed some bugs and added support for multiple class tags on rendered elements