Added better error messages and fixed bug in Reinhart/Tregenza sampling