adding godoc link
added bool 2 int helper function
added tp param constructor, init ephemeral vars, and code cleanup
added temporal pooler test file