added documentation
cs fixes