Move the result addition to the result class, add the header license and improve the LICENSE file.