Removed branches text file
Refactor some little things, style, error handling