Changed length() return annotation
Add license to composer files.
Cleaning up code.