added comment to the Deck file and split off the unittesting code