updating serial backend
some whitespace weirdness
add function name
remove obsolete code