added copy of Apache license, generated docs, code cleanup (formatting)