added literal dies, better constructor and toDouble