Fixed multiple functions and added debug functionality to bison