added init.R for directory initialization