Fix syntax and documentation