Removed unnecessary print-function
Removed an unnecessary null-check
Updated and added some new documentation