Some improvements and fixed errors

All the credentials and custom info is now edited only inside the Main
class. More exceptions and possible errors are handled.