Added adaptivity. Added comments in index.html