chage to _bind()

still kinks need to be worked out
Fix in _Bind() for already bound
Major Comments added

This should make it easier to understand what i have done.
Also moved more functions to the functions library and reorganised it
Merge pull request #2 from cullyn/master

Code catchup