Updated code to not use deprecated methods
Spacing and more code edits
Resolve Url reference error
Merge pull request #1799 from chrischang12/MLchang

Updated code to not use deprecated methods