Added @document support. Fixes #21