added and tested functionDomains and subjectDomains properties

Addresses #57, but range of values for each property still need to be decided.