Tidied some code up and removed the xcb_ from the start of some functions as it was just confusing.