Added hs-source-dirs field
Added simple main function for testing