Fix JSLint errors, change few codes to keep coherence and add documentation about new features