Attempted documentation of marks code, fix it up if you see problems

Signed-off-by: Exikle <xidstudios@hotmail.com>