add Rproject and NAMESPACE
remove unneeded files
add misc_functions