rename lib as scripts
clean up some comments