Added feedback for mockmode. Added getlen. Removed whitespace.