Removed unwanted code. Added comments.