added some comments. removed junk.