Added support for quads (fixes #5)