Compiles now
Added mlog from Chuck Cranor <chuck@ece.cmu.edu>
Struct and function definition fixes