Modified limits to side and number of dice and added shebang.