Added minor features and some comments.