Refactor of tuque, updated constants and doc comments.