Refactored install scripts and documented them.