code cleanup / error handling
code cleanup
changed version
add console.err for invalid buffer len on parsetelegrams
fixed minor bugs