Updated CoFH API, closes #14.