lobe.h layout and type corrections

Minor corrections to lobe.h and preperation for use of streams in input output
operations. Does not compile

Signed-off-by: Ahmed Mansour <ahmed.om@gmail.com>