Corrected bugs and made a few practical changes.