Added lisence texts and refactored Thumb class.
Refactoring. Cleaned up the code and limited visibility and inheritability of client code.