console logs removed, added some comments.