Removed unused functions and changed the character codes into a more readable way of representing it.