fixed some debugging msgs
added script for initializing R directory