adjusted some docs code. fixed static error.