Merge library code to make standalone
Re-add readme