Removed use of String.substr().
Several improvements in the object modules. Better naming, some additions and modifications in functionality.