Convert script to main source file and rename
Split Main.hs into separate modules