Add license headers
Rename variable: detail -> details
Add javadoc