clean up the source code tree and remove the study-specific routines. close #1