cleaned up comments, added style.