Corrected bugs and added installation instructions.