Small improvements. Changed pointers around, and added documentation.
Faisl to build supposedly due to a bug in rust.