Fixed variable scope
Documented the configure script