Fixed reading variables of different sizes
Extended examples and added a GUI example