Fixing timestamp bug, adding type declartion of java variables to examples