Fixed some minor stpl bugs and improved documentation.