Added argument for itemType
added compiled functions
modified for source
scripts for testing parallel computing