switched to long double, added Common files