Safer Credentials

Added Credential class usage to Main.java, updated .gitignore