added README file
optimization and structurization