Cleaned up Assignment1.hs and added more comments and type signatures