added analysis of orphans and changed output colours
minor tweaks
added usage() and basic options
aligned with aao setup
changed switch to d