Adding code to handle different reference sequences

Resolves #10