Fixed method declarations

Some methods had variables and definitions that wouldn't compile.