Split the contentscript into class files. updated some styling and logic