license added, code polish