moved record-related testing code into its own place
mostly just updated comments
added minified version of record extension