Added support for styling stdin.
Tidied code.
Added exit codes.
updated SPEC for v2