A primer of complex variables with an introduction to advanced techniques