More work on quat library