AXPY -- AXPBY bug? Compiler warning fixes

When attempting to compile the examples, I found the axpy/axpby bug. 

I've also fixed any compiler warnings I found.