moved resources to lib, added profile_functions, standardize link creation, added @todos