Fixed problem with refinement level being hardwired to 1, fixed error messages,
other improvements.