Move server to main
Allow filename on cmd line