Added some comments, stopped using deg2rad b/c Scala has a built-in function.
Added some comments, explicitly disconnects from database now.