Added license file
Fixed a potential memory leak
Added an extensive amount of comments
Changed how constructor thread handles specific variables. Allows for a more modular design.