Fixed bug and updated notes.