adding additional documentation, and additional stack implementation cod...

...e