Fixed module export name for graphtieGetData and implemented pattern matching error handling in Main.hs