Append to CXXFLAGS, not overwrite.
Updated examples.
Fixed up LOG2 macro. There are now both a LOG2 and a CLOG2 function.
Added encoders.