Fixed setup script and bumped version to 0.31