Add debug option in makefile; Fix string memory allocation; Init lval with proper error message.