templated Result::get and added endianness conversion functions, and few more things
fix: segmentation fault because if clause order was wrong