actual scoreParser code file - with comments

note: remove the bottom unwrapped code: it was used for generating the
test files