Fixed some initialization problems as well as a problem with handling '$' characters.