wrote documentation.
fixed drawing order (now ascending instead of descending).