Commenting and fixing errors

Also allowed the user to set the number of powerups and added error
handling for all of that