Added cross platform support (*nix and windows).
Rewrite readme to match changes.