Fine Tuning and documentation.
Added nice settings for priorities on os.
Made weight calculation cpu dependent.
Fixed line length in code.