Improved mark function.
Improved docs.