split helper to cpp and h, remove ugly include, wrap dynasm in class