optimized some indices
added beta for v4.0
added config to remove deprecation warning
fixed some tests

Changes in css were not present here before...
Also invalid flag must be fixed