Added a function to edit resources

See the readme for more info.
The documentation (the readme) is now more comprehensive.
Added reference operators to avoid using the entire vector as an
argument, and to make it editable within functions.