changed readme and parse function to take any size input