Most of the bugs fixed

If any one of them is left kindly tell me.
Update README
Added minified version