Added comments to multiple filles and edited and simplefied them