Small changees in hpp files. Addes proto file.