Javabin Implementation
TODO: cleanup code
timestamp bugfix