addeded licensing and fixed copyrights