Added license (Apache License 2.0), changed structure.