changed some formatting, fixed the removal of x and y
added a getopt system, with -f and -h flags