basic code cleanup in class.contribute.js
documentation and further cleanup of class.contribute.js