Re-wrote anisotropy based on the CHARMM aniso function.

Change-Id: I6b906ca35d88054373dc380b5b6e087277129e42