Marked internal functions private.

Fixed code that uses them to reflect that and added license to setup.
Also made some tweaks to method names.