added commandline options; started reference extraction