Changed API calls so only one direction gets passed into/out of output-* functions. Makes duplicate property detection automatic. Allows for defined grid direction

Resolves #121