fixed small compile errors
add a constants file