Fixed prototype warnings, added first time setup