Removed trailing whitespace.
Renamed attributes to domains.
Added a function to get facets map.
Started work on IPIP module.