Changes

1.02:
- small optimizations

1.01:
- warning and exiting when indir and outdir are the same

1.0:
- initial version
