Added docs, new util functions