Optimized for website

Added correct output and moved reading from files to server.