Ab initio studies on the geometrical and vibrational structures of polymers