added license information, removed usless comments