Implemented loa_stats() and friends. loa's are essentially done.
Fixed small error in *stats struct allocation.
Merge branch 'master' into loa