Modified figure legend placement, added more comments.