fleshed out main function, changed Startingpts