Some optimizations and added copyright info
Updated to V1.4.0