innupp1. improved comments

cleaned up the code a bit and made more detailed comments.