warnings and methods

fixed some warnings and added new method declarations