add public methods
fix git ingore
code formatting