code cleanup and testing if commits are added to right user