Changed the way the data structure was organised and added IRC control