prefix now affects classname also and refSize accepts a number too. Fixes #2