Cleaned up code structure
Added seek to apply function
Updated gitignore to skip test shell scripts