README updated
code optimized