Added commands to console. Moved code around in web/.