Keeping track of dirty attributes.

Made a few model attributes more private during the process.