Edited reset code and graphics. Also finetuned code.