Added process source method to source processor

This PR supersedes #19