Erlang vars must be capitalized

Hey! I've found a bunch of places were variables names were invalid. This PR includes the changes in #59.