Moved SOM code into a facade. Also created some method stubs for generating the html file for visualizing the results.