Added license reference. Changed code style.