Added option for register autoclose tag. Fixed #2.