Fix array to string conversion

See #68
Remove index.php files

Fixes #216