Added licensing information, deleted a few lines that were used for debugging