adding random status, and refactor code in status.c
fixing bug with control chars in tokens