Added comments and optimized LocalVariableManager

Commented important base classes and creates clear methods for
declaring primitive variables in the LocalVariableManager