Completed Functions

Added both code and description to the functions so that they work
properly