add prelim code and fix readme