Added lots of comments. Got fudge factors about as goos as i'll ever get
them