renamed input and output key for foreignKey and coreDataKey
whitespace
rewording
added tests for the "count" and "exists" methods