is now a sinatra app; added domain url check; lot of refactoring; styling