added AntReader class for programmatic access;
fixed bug in command line arg handling