Removed library imports and edited commenting