added basic editing, compiled stuff together into index.php