cleaned up cmake file
made speed function parameters into program arguments and made display with level and window optional