added basic Sample parsing functionality