closed #1382
#1383
#1383
#1387
#1387
closed #1390
small fix
#1388
small code style fix
simplified index.php
small fix ConfigManager