Cleaned up and commented code from the changes made today. Shifted all functions to the sun_functions file that were not part of the object and moved all form requests to the view file. Paramters still need to be cleaned up on views file.