Added case insensitivity, also:
 * updated automatic tests
 * added --version
 * incremented version
 * prevented "Failed to expand 0 references" message.
Added support for stdin and stdout