Fixed some documentation, added support for multiline template tags and functions