refactored Frabjous.hs into standard and internal libraries