EXPERIMENTAL: note: angle calculation is not correct. added optional time calculation and bar calculation