bug fix : change exception to logic_error
add build* style directory into gitignore