added AMOS support

added AMOSparse function, cleanup of unused usedNodes section, more
efficient way of including directionality.
working

fixed a few typos