v1.1, documented subfunctions, added places for start and endtags