First commit of a revised morpheuslib, which is to replace the original.