added initial testing code
added functionality to parse function in tags