started to port some reference parsing routines
added authorname ref method, fixed xpath issue
Fix docopt options