Fixed sign break bug, cleaned up code, updated to 1.4.7