The framed Morse complex and its invariants