Fixed a couple of bugs. Added basic calculator example.