refactor base
fixed all syntax errors, have simple example
fixed json header bug
fixed json header bug