Corrected bugs; version 0.7.1