Public Methods, comments & variables

Public methods, rather than methods as 1st parameter; legacy still supported. Passing more variables for better scoping and minification. Some additional comments.