move modules folder to its first place
add JSON_PRETTY_PRINT option in json_encode