Cleaned up ErlangMix.R

Added comments, cleaned up code a bit.