initial port of code from PyCogent
added init, this will also support easy importing from qcli
minor updates to reflect port to from cogent to qcli