renamed options as header.r and moved loading of modules to header.