added support for multiple conditions,functions and loops
edited