fixed syntax errors, added an info method