Better filestream handling
Added onEnable and disable methods aswell as other minute changes