Code cleanup and added informations, BSD licenses