Added getters and setters for debug: also changed the packet writer
method to const