unit 2 changes

Added thumbnail codes
Cleaned up code