Integrated version

This is the integrated version with all the existing functionalities put together and tidied up. I have also added the volume and time bars. We can try out new functionalities in separate code and add to this version when completed.