Cleaned most IDE warnings and documented key methods