added some message builder helpers. Optimized libray a bit using inline functions and macros.
Converted Dallas example to use new library api.