Fixed version

Fixed some stuff and updated the codebase a lot.