Updated stack code's pop function to not use any local variable and look cooler!
Added new feature to limit the capacity of a stack. Relevant test cases were added too. Also completed the descriptions of API docs.