Hopefully last changes to part one. Added more comments.