Making the functions
Making Getters and Setters
Rearrange
Adding comments
Initialise variables
Adding the capture code
Added the new threading to the main class