Update install and configure instructions.
Clean up and comment the code a bit.