Defaulted Ids to null

In constructors and functions defaulted the id to null, so an id does not need to be required everytime as there are some cases where the id isn't needed. Added comments to reflect and explain this.
Added associated id to the required class and functions