Made syntax adjustments so that controllers would function. Additionally, added proper documentation.