Added Detailed Functions

I added the required code to make the functions operate.