Cleaned up calculateBarX params.
release 1.0.1