changed uploadID from String to Int
Added private methods to class Diagrams